package com.rh.service;

import com.rh.dto.Page;
import com.rh.entity.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeService {
    void addMethod(Employee employee);


    void deleteMethod(Integer empId);


    void updateMethod(Employee employee);


    Page getEmployeePage(Integer pageNo, Integer pageSize);

    Employee getMethodAllById(Integer empId);
    /**
     * 根据邮箱查询所有
     */
    Employee getEmployeeAllByEmail(String email);
    /**
     * 注册
     */
    void register(@Param("email") String email, @Param("empPassword") String empPassword,@Param("salt")String salt);

}

